package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.PayReconciliationDetailMapper;
import com.ruoyi.finance.domain.PayReconciliationDetail;
import com.ruoyi.finance.service.IPayReconciliationDetailService;

/**
 * 应付核销详情Service业务层处理
 * 
 * @author lmj
 * @date 2024-11-14
 */
@Service
public class PayReconciliationDetailServiceImpl implements IPayReconciliationDetailService 
{
    @Autowired
    private PayReconciliationDetailMapper payReconciliationDetailMapper;

    /**
     * 查询应付核销详情
     * 
     * @param id 应付核销详情主键
     * @return 应付核销详情
     */
    @Override
    public PayReconciliationDetail selectPayReconciliationDetailById(Integer id)
    {
        return payReconciliationDetailMapper.selectPayReconciliationDetailById(id);
    }

    /**
     * 查询应付核销详情列表
     * 
     * @param payReconciliationDetail 应付核销详情
     * @return 应付核销详情
     */
    @Override
    public List<PayReconciliationDetail> selectPayReconciliationDetailList(PayReconciliationDetail payReconciliationDetail)
    {
        return payReconciliationDetailMapper.selectPayReconciliationDetailList(payReconciliationDetail);
    }

    /**
     * 新增应付核销详情
     * 
     * @param payReconciliationDetail 应付核销详情
     * @return 结果
     */
    @Override
    public int insertPayReconciliationDetail(PayReconciliationDetail payReconciliationDetail)
    {
        return payReconciliationDetailMapper.insertPayReconciliationDetail(payReconciliationDetail);
    }

    /**
     * 修改应付核销详情
     * 
     * @param payReconciliationDetail 应付核销详情
     * @return 结果
     */
    @Override
    public int updatePayReconciliationDetail(PayReconciliationDetail payReconciliationDetail)
    {
        return payReconciliationDetailMapper.updatePayReconciliationDetail(payReconciliationDetail);
    }

    /**
     * 批量删除应付核销详情
     * 
     * @param ids 需要删除的应付核销详情主键
     * @return 结果
     */
    @Override
    public int deletePayReconciliationDetailByIds(Integer[] ids)
    {
        return payReconciliationDetailMapper.deletePayReconciliationDetailByIds(ids);
    }

    /**
     * 删除应付核销详情信息
     * 
     * @param id 应付核销详情主键
     * @return 结果
     */
    @Override
    public int deletePayReconciliationDetailById(Integer id)
    {
        return payReconciliationDetailMapper.deletePayReconciliationDetailById(id);
    }
}
